<?php

defined('IN_MAIN') or exit('Invalid Access!');



function _e($text){

global $_l;



if(isset($_SESSION['lan'])){

 $lan=$_SESSION['lan'];

}elseif(isset($_COOKIE['lan'])){

 $lan=$_COOKIE['lan'];

}

if(file_exists(LANGUAGE_PATH."/".$lan."_language.php")){

 require_once(LANGUAGE_PATH."/".$lan."_language.php");

}

echo isset($_l[$text])? $_l[$text] : $text;

}



function __($text){

global $_l;



if(isset($_SESSION['lan'])){

 $lan=$_SESSION['lan'];

}elseif(isset($_COOKIE['lan'])){

 $lan=$_COOKIE['lan'];

}else{

 $lan='eng';

}

if(file_exists(LANGUAGE_PATH."/".$lan."_language.php")){

 require_once(LANGUAGE_PATH."/".$lan."_language.php");

}



return isset($_l[$text])? $_l[$text] : $text;

}

?>